//
// Created by Thinkpad on 2025/11/10.


#include <iostream>
using namespace std;

// Members private by default
class Dog {
public:
    string name{"None"};
};

// Members public by default
struct Cat {
    string name;
};

// Common use for struct
struct Point {
    double x;
    double y;
};

void print_point(const Point &point) {
    cout << "Point[x :" << point.x << " ] [y :" << point.y << "]" << endl;
}



int main() {
    Dog dog1;
    Cat cat1;
    dog1.name = "jack";
    cat1.name = "Bold";
    cout << cat1.name << endl;

    Point point;
    point.x = 3.14;
    cout << point.x << endl;
    point.y = 4.44;
    cout << point.y << endl;

    print_point(point);

    return 0;
}
